package com.alongthink.javademo.queue;

public class LockFlag {
    /**
     * 生产者互斥锁
     */
    private static Boolean producerRunningFlag = false;
    /**
     * 消费者互斥锁
     */
    private static Boolean customerRunningFlag = false;

    public static Boolean getProducerRunningFlag() {
        return producerRunningFlag;
    }

    public static void setProducerRunningFlag(Boolean producerRunningFlag) {
        LockFlag.producerRunningFlag = producerRunningFlag;
    }

    public static Boolean getCustomerRunningFlag() {
        return customerRunningFlag;
    }

    public static void setCustomerRunningFlag(Boolean customerRunningFlag) {
        LockFlag.customerRunningFlag = customerRunningFlag;
    }
}
